package xyz.lisys.taglib.component;

import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.components.Component;

import java.io.IOException;
import java.io.Writer;

public class HelloComponent extends Component {
    public HelloComponent(ValueStack stack) {
        super(stack);
    }

    @Override
    public boolean start(Writer writer) {
        try {
            writer.write("Hello struts2");
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
        return super.start(writer);
    }
}
